package lambda.mybatisPlus;

import org.junit.Test;
import org.springframework.util.SerializationUtils;

import java.io.ByteArrayInputStream;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.util.Arrays;

/**
 * @author JIANGYOUYAO
 * @date 2021/8/10 0010
 */
public class mybatisplus分析2 implements Serializable {



    @Test
    public void test() throws Exception {


        SerializedLambda serializedLambda=SerializedLambda.resolve(Arrays::asList);
//      SerializedLambda serializedLambda=SerializedLambda.resolve((Arrays a)->a.asList("1"));

        System.out.println(serializedLambda.toString());

    }



    @Test
    public   void  test2() throws Exception {
        mybatisplus分析2 b=new mybatisplus分析2();

        ObjectInputStream objIn = new ObjectInputStream(new ByteArrayInputStream(SerializationUtils.serialize(b))) ;

        mybatisplus分析2 bc= (mybatisplus分析2) objIn.readObject();

        System.out.println(bc.getClass().getSimpleName());


    }


}
